import 'package:flutter/material.dart';
import 'package:xindong/common/xindong_sezhi.dart';

/// 系统消息提示
class XinDongLiaoTianSystemTips extends StatelessWidget {
  final String text;

  const XinDongLiaoTianSystemTips({Key? key, required this.text}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Row(
      mainAxisSize: MainAxisSize.min,
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        Container(
          margin: const EdgeInsets.only(top: 5, bottom: 5),
          padding: const EdgeInsets.fromLTRB(10, 8, 10, 8),
          alignment: Alignment.center,
          decoration: BoxDecoration(
            color: DZColors.white,
            borderRadius: BorderRadius.circular(8),
          ),
          child: SelectableText(
            text,
            scrollPhysics: const NeverScrollableScrollPhysics(),
            textAlign: TextAlign.center,
            cursorColor: DZColors.mainBlueColor,
            style: const TextStyle(fontSize: 15, color: DZColors.mainBlueColor, height: 1.2),
          ),
        ),
      ],
    );
  }
}
